package cn.edu.swu.ws;

public class App {

    public static void main(String[] args) {
        Student s1 = new Student("Tom", 19, "2024090001");
        Student s2 = new Student("Jerry", 18, "2024090002");

        if (s1.getAge() > s2.getAge()) {
            System.out.println(s1.getName() + " is older than " + s2.getName() + " " + (s1.getAge() - s2.getAge()) + " years");
        } else {
            System.out.println(s2.getName() + " is older than " + s1.getName() + " " + (s2.getAge() - s1.getAge()) + " years");
        }
    }

}
